package org.example.system.service;

import org.example.common.base.util.web.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @version 1.0.0
 * @className: IAuthService
 * @description: 认证
 * @author: LiJunYi
 * @create: 2023/4/6 9:45
 */
@FeignClient(value = "security-oauth2")
public interface IAuthService {

    @PostMapping(value = "/oauth/token")
    AjaxResult getAccessToken(@RequestParam Map<String, String> parameters);
}
